home *** CD-ROM | disk | FTP | other *** search
- /* Argument gatherer */
- /* */
- /* Brian Gragg 10/1/95 */
- /* */
- /* arguments: x y prompt string canceltext pubscreen cmd */
- /* empty arguments will cancel the command */
- /* */
- /* call from shell like this: */
- /* rx doargs 10,10,The Title,Default,Cancel,WORKBENCH,dir all */
-
- if ~show("L","rexxarplib.library") then do
- if addlib("rexxarplib.library",0,-30,0) then
- say "Added rexxarplib.library."
- else do
- say "RexxArpLib.library not available."
- exit 10
- end
- end
-
-
- /* these are for example*/
- x = 100
- y = 100
- prompts = "Enter grep options\okay\cancel"
- string = "-$ "
- canceltext = "Cancel"
- publicscreen = "WORKBENCH"
- cmd = "sys:rexxc/rx aggrep"
-
- parse arg x ',' y ',' prompts ',' string ',' canceltext ',' pubscreen ',' cmd
-
- arguments = Request(x, y, prompts, string, , canceltext, publicscreen)
-
- if arguments ~= "" then
- address command cmd arguments
-